﻿using SqlSugar;
namespace IMES.Entity
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("samenu")]
    public class Menu:BaseEntity
    {
        /// <summary>
        /// 菜单编号 
        ///</summary>
         [SugarColumn(ColumnName="No"    )]
         public string No { get; set; }
        /// <summary>
        /// 菜单代码 
        ///</summary>
         [SugarColumn(ColumnName="Name"    )]
         public string Name { get; set; }
        /// <summary>
        /// 菜单名称 
        ///</summary>
         [SugarColumn(ColumnName="Title"    )]
         public string Title { get; set; }
        /// <summary>
        /// 可用状态 
        ///</summary>
         [SugarColumn(ColumnName="Usable"    )]
         public bool? Usable { get; set; }
        /// <summary>
        /// 上级菜单编号 
        ///</summary>
         [SugarColumn(ColumnName="ParentNo"    )]
         public string ParentNo { get; set; }
        /// <summary>
        /// 序号 
        ///</summary>
         [SugarColumn(ColumnName="SortID"    )]
         public int? SortID { get; set; }
        /// <summary>
        /// 层级 
        ///</summary>
         [SugarColumn(ColumnName="Level"    )]
         public int? Level { get; set; }
        /// <summary>
        /// 图标索引 
        ///</summary>
         [SugarColumn(ColumnName="ImageIndex"    )]
         public int? ImageIndex { get; set; }
        /// <summary>
        ///  
        ///</summary>
         [SugarColumn(ColumnName="Component"    )]
         public string Component { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "备注", ColumnDataType = "nvarchar(max)")]
        public string? Remark { get; set; }

        /// <summary>
        /// 子节点列表
        /// </summary>
        [SqlSugar.SugarColumn(IsIgnore = true)]
        public List<Menu> Childs { get; set; }
    }
}
